﻿<%@ Page Title="" Language="VB" MasterPageFile="~/AMLO/MasterPageAMLO.master" AutoEventWireup="false" CodeFile="Amlo1_01.aspx.vb" Inherits="AMLO_Amlo1_01" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
       $(document).ready(function () {

           Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
           $("input[id$=txtTransDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
               yearAddToDisplay: 543,
               dateFormat: 'dd/mm/yy',
               showOn: "button",
               buttonImage: "../img/calendar.gif",
               buttonImageOnly: true
           }));

           function EndRequestHandler(sender, args) {
               $("input[id$=txtTransDate]").datepicker($.extend({}, $.datepicker.regional['th'], {
                   yearAddToDisplay: 543,
                   dateFormat: 'dd/mm/yy',
                   showOn: "button",
                   buttonImage: "../img/calendar.gif",
                   buttonImageOnly: true
               }));

           }

       });


       var hasSubmitted = 0;
       function NoDoubleSubmit() {
           var divMsg = document.getElementById('Processing');
           if (hasSubmitted == 0) {
               hasSubmitted = 0;
               divMsg.style.display = 'block';
               return true;
           }
           return false;
       }

       var hasSubmitted2 = 0;
       function NoDoubleSubmit2() {
           var divMsg2 = document.getElementById('Processing2');
           if (hasSubmitted2 == 0) {
               hasSubmitted2 = 0;
               divMsg2.style.display = 'block';
               return true;
           }
           return false;
       }

       var prm = Sys.WebForms.PageRequestManager.getInstance();

       prm.add_initializeRequest(InitializeRequest);
       prm.add_endRequest(EndRequest);

       function InitializeRequest(sender, args) {
           $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'wait';
       }

       function EndRequest(sender, args) {
           $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'auto';
       }

    </script>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%; height: 393px;">
                <tr valign="top">
                    <td colspan="3">
                        <asp:ImageButton ID="ibtnTab1" runat="server" 
                            ImageUrl="~/img/icon/button_1Select.jpg" CssClass="control" />
                        <asp:ImageButton ID="ibtnTab2" runat="server" 
                            ImageUrl="~/img/icon/button_2Select.jpg" />
                        <asp:ImageButton ID="ibtnTab3" runat="server" 
                            ImageUrl="~/img/icon/button_3Select.jpg" />
                    </td>
                </tr>
              
                <tr>
                    <td colspan="3">
                        <asp:Panel ID="Panel5" runat="server" >
                            <table width="100%" class="control" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="right" class="control">
                                            สาขา :<asp:HiddenField ID="hdfRptSeq" runat="server" />
                                            &nbsp;</td>
                                    <td align="left" valign="top" >
                                        <asp:DropDownList ID="ddlBranch" runat="server" CssClass="control" 
                                            Width="170px" >
                                        </asp:DropDownList>
                                    </td>
                                    <td class="control" align="right" valign="top">
                                        ปี : 
                                    </td>
                                    <td align="left" valign="top">
                                        <asp:TextBox ID="txtYear" runat="server" CssClass="control" Height="20px" 
                                            Width="50px" AutoCompleteType="Disabled" MaxLength="2"></asp:TextBox>
                                    </td>
                                    <td class="control" align="right" valign="top">
                                        เลขที่ : 
                                    </td>
                                    <td align="left" valign="top" >
                                        <asp:TextBox ID="txtNo" runat="server" CssClass="control" Height="20px" 
                                            Width="100px" AutoCompleteType="Disabled"></asp:TextBox>
                                    </td>
                                    <td class="control" align="right" valign="top">
                                        Rev :
                                    </td>
                                    <td align="left" valign="top">
                                        <asp:TextBox ID="txtRev" runat="server" CssClass="control" Height="20px" 
                                            Width="40px" AutoCompleteType="Disabled"></asp:TextBox>
                                        <asp:TextBox ID="txtDate" runat="server" CssClass="control" Height="20px" 
                                            Width="100px" AutoCompleteType="Disabled"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </asp:Panel>
                    </td>
                </tr>
                <tr valign="top">
                    <td colspan="3">
                        <asp:Panel ID="Panel1" runat="server" >
                    <table width="100%" class="control" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <table width="100%" class="control" cellpadding="0" cellspacing="0">
                                        
                                        <tr>
                                                        <td colspan="8">
                                                            <hr />
                                                        </td>
                                                    </tr>
                                        <tr>
                                                        <td align="right" valign="top">
                                                            ชนิด : 
                                                        </td>
                                                        <td colspan="3" align="left" valign="top">
                                                            <asp:DropDownList ID="ddlUniqueType" runat="server" 
                                                            CssClass="control" Width="200px" BackColor="#FFCCCC" AutoPostBack="True">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td align="right" valign="top">
                                                            เลขที่ : 
                                                        </td>
                                                        <td colspan="3" align="left" valign="top">
                                                            <asp:TextBox ID="txtUniqueID" runat="server" CssClass="control" Height="20px" 
                                                            Width="200px" MaxLength="13" BackColor="#FFCCCC" AutoCompleteType="Disabled"></asp:TextBox>
                                                            &nbsp;<asp:Button ID="btnSearchData" runat="server" Text="ค้นหา" Width="64px" 
                                                                CssClass="control" />
                                                            <asp:HiddenField ID="hdfUniqueID_Part1" runat="server" />
                                                        </td>
                                                    </tr>
                                        <tr>
                                                        <td colspan="8" style="text-align: center">
             <SPAN id="Processing" style="DISPLAY: none">
 <img src="../img/icon/ajax-loader.gif" alt="Please wait" />
            กรุณารอสักครู่ ระบบกำลังค้นหาข้อมูล...
  </SPAN>
                                                            <hr />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            ผู้ทำธุรกรรม :
                                                     </td>
                                                        <td colspan="7">
                                                          <%--  <asp:RadioButtonList ID="rdolIdxType" runat="server" CssClass="control" 
                                                                RepeatDirection="Horizontal" BackColor="#FFCCCC">
                                                                <asp:ListItem Value="1">ทำธุรกรรมด้วยตนเอง</asp:ListItem>
                                                                <asp:ListItem Value="2">ทำธุรกรรมแทนผู้อื่น</asp:ListItem>
                                                            </asp:RadioButtonList>--%>
                                                    </td>
                                                        
                                                    </tr>
                                        <tr bgcolor="#FDF6DA">
                                                <td align="right" valign="top">
                                                  คำนำหน้า :
                                                </td>
                                                <td  valign="top">
                                                 <asp:TextBox ID="txtPrefix" runat="server" CssClass="control" Width="110px" 
                                                    BackColor="#FFCCCC" Height="20px" AutoCompleteType="Disabled" MaxLength="50"></asp:TextBox>
                                                </td>
                                                <td align="right" valign="top">
                                                    ชื่อ :
                                                </td>
                                                <td align="left" valign="top">
                                                    <asp:TextBox ID="txtFirstName" runat="server" CssClass="control" 
                                                    Height="20px" Width="120px" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                        MaxLength="200"></asp:TextBox>
                                                </td>
                                                <td align="right" valign="top">
                                                    ชื่อกลาง :
                                                </td>
                                                <td align="left" valign="top">
                                                    <asp:TextBox ID="txtMidName" runat="server" CssClass="control" Height="20px" 
                                                    Width="100px" BackColor="#FFCCCC" AutoCompleteType="Disabled" MaxLength="50"></asp:TextBox>
                                                </td>
                                                <td align="right" valign="top">
                                                     นามสกุล :
                                                </td>
                                                <td align="left" valign="top">
                                                <asp:TextBox ID="txtLastName" runat="server" CssClass="control" Height="20px" 
                                                    MaxLength="200" Width="150px" BackColor="#FFCCCC" AutoCompleteType="Disabled"></asp:TextBox>
                                                </td>
                                        </tr>
                                        <tr >
                                                        <td align="right">
                                                            ที่อยู่ :
                                                        </td>
                                                        <td colspan="7">
                                                            <asp:TextBox ID="txtFormalAddr" runat="server" CssClass="control" Height="20px" 
                                                                Width="100%" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                                MaxLength="250"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                        <tr >
		                                        <td align="right" valign="top">
                                                 โทรศัพท์ :
		                                        </td>
                                                <td  valign="top">
                                                 <asp:TextBox ID="txtFormalPhone" runat="server" CssClass="control" 
                                                    Height="20px" Width="130px" MaxLength="50" BackColor="#FFCCCC" 
                                                        AutoCompleteType="Disabled"></asp:TextBox>
                                                </td>
                                                 <td align="right" valign="top">
		                                             โทรสาร :</td>
                                                <td align="left" valign="top">
                                                    <asp:TextBox ID="txtFormalFax" runat="server" BackColor="#FFCCCC" 
                                                        CssClass="control" Height="20px" MaxLength="50" Width="110px" 
                                                        AutoCompleteType="Disabled"></asp:TextBox>
                                                </td>
                                                <td colspan="4" align="left">
                                                    <asp:Button ID="btnFormalToWork" runat="server" CssClass="control" 
                                                        Text="คัดลอกไปยังสถานที่ทำงาน" Width="200px" />
                                                    <asp:Button ID="btnFormalToContact" runat="server" CssClass="control" 
                                                        Text="คัดลอกไปยังสถานที่ติดต่อ" Width="200px" />
                                                </td>
                                        </tr>
                                       
                                        <tr bgcolor="#FDF6DA">
                                            <td align="right">
                                                อาชีพ :
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlJob" runat="server" 
                                                    CssClass="control" Width="170px" BackColor="#FFCCCC">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="right">
                                                ข้อมูลอาชีพ :
                                            </td>
                                            <td colspan="3">
                                                <asp:TextBox ID="txtWorkOther" runat="server" CssClass="control" Height="20px" 
                                                    Width="205px" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                    MaxLength="80"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                                        <td align="right">
                                                            สถานที่ทำงาน :
                                                        </td>
                                                        <td colspan="7">
                                                            <asp:TextBox ID="txtWorkAddr" runat="server" CssClass="control" Height="20px" 
                                                                Width="100%" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                                MaxLength="250"></asp:TextBox>
                                                        </td>
                                                    </tr>

                                        <tr >
		                                    <td align="right" valign="top">
		                                        โทรศัพท์ :
		                                    </td>
                                             <td>
                                                 <asp:TextBox ID="txtWorkPhone" runat="server" BackColor="#FFCCCC" 
                                                     CssClass="control" Height="20px" MaxLength="250" Width="130px" 
                                                     AutoCompleteType="Disabled"></asp:TextBox>
                                            </td>
                                            <td align="right">
		                                        โทรสาร :</td>
                                            <td>
                                                <asp:TextBox ID="txtWorkFax" runat="server" BackColor="#FFCCCC" 
                                                    CssClass="control" Height="20px" MaxLength="250" Width="110px" 
                                                    AutoCompleteType="Disabled"></asp:TextBox>
                                            </td>
                                            <td colspan="4" align="left">
		                                        <asp:Button ID="btnWorkToContact" runat="server" CssClass="control" 
                                                    Text="คัดลอกไปยังสถานที่ติดต่อ" Width="200px" />
		                                    </td>
                                           
	                                    </tr>

                                        <tr bgcolor="#FDF6DA">
                                            <td align="right">
                                                สถานที่ติดต่อ :
                                            </td>
                                            <td colspan="7">
                                                <asp:TextBox ID="txtContactAddr" runat="server" CssClass="control" 
                                                    Height="20px" Width="100%" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                    MaxLength="250"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#FDF6DA">
                                                        <td align="right">
                                                            โทรศัพท์ : </td>
                                                        <td colspan="3">
                                                            <asp:TextBox ID="txtContactPhone" runat="server" CssClass="control" 
                                                                Height="20px" Width="130px" MaxLength="50" BackColor="#FFCCCC" 
                                                                AutoCompleteType="Disabled"></asp:TextBox>
                                                        </td>
                                                        <td align="right">
                                                            โทรสาร :</td>
                                                        <td colspan="3">
                                                            <asp:TextBox ID="txtContactFax" runat="server" CssClass="control" Height="20px" 
                                                                Width="130px" MaxLength="50" BackColor="#FFCCCC" 
                                                                AutoCompleteType="Disabled"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                        <tr>
                                            <td align="right">
                                                หลักฐานทำธุรกรรม :</td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlTranEV" runat="server" CssClass="control" 
                                                    Height="22px" Width="240px" BackColor="#FFCCCC" AutoPostBack="True">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="right">
                                                ข้อมูลเพิ่มเติม :
                                            </td>
                                            <td colspan="3">
                                                <asp:TextBox ID="txtTranEVOther" runat="server" CssClass="control" 
                                                    Height="20px" Width="200px" BackColor="#FFCCCC" 
                                                    AutoCompleteType="Disabled" MaxLength="80"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" valign="top">
                                                เลขที่ :
                                            </td>
                                            <td valign="top">
                                                <asp:TextBox ID="txtEVNo" runat="server" CssClass="control" Height="20px" 
                                                    MaxLength="15" Width="120px" BackColor="#FFCCCC" 
                                                    AutoCompleteType="Disabled"></asp:TextBox>
                                                &nbsp;</td>
                                               <td align="right" valign="top">
                                               
                                                   ออกโดย&nbsp;:
                                               
                                            </td>
                                               <td align="right" valign="top">
                                               
                                                   <asp:TextBox ID="txtEVBy" runat="server" BackColor="#FFCCCC" CssClass="control" 
                                                       Height="20px" Width="120px" AutoCompleteType="Disabled" MaxLength="60"></asp:TextBox>
                                               
                                            </td>
                                            <td align="right" valign="top">
                                                ออกเมื่อ :
                                            </td>
                                            <td valign="top" >
                                                <asp:TextBox ID="txtEvGen" runat="server" CssClass="control" Height="20px" 
                                                    MaxLength="8" Width="100px" BackColor="#FFCCCC" 
                                                    AutoCompleteType="Disabled"></asp:TextBox>
                                                <br />
                                                DDMMYYYY (พ.ศ.)
                                            </td>
                                            <td align="right" valign="top">
                                                            วันหมดอายุ :
                                            </td>
                                            <td valign="top">
                                                                 <asp:TextBox ID="txtEvExpire" runat="server" CssClass="control" Height="20px" 
                                                                     MaxLength="8" Width="100px" BackColor="#FFCCCC" 
                                                                     AutoCompleteType="Disabled"></asp:TextBox>
                                                                 <br />
                                                                 DDMMYYYY (พ.ศ.)
                                            </td>

                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                </asp:Panel>
                    </td>
                </tr>

                <tr valign="top">
                    <td colspan="3">
                <asp:Panel ID="Panel2" runat="server">
                    <table  style="width: 100%; " class="control" cellpadding="0" cellspacing="0">
                        <tr>
                           <td style="text-align: left" colspan="6" >
                                <asp:Panel ID="Panel4" runat="server" ScrollBars="Vertical" Width="570px" Height="150px">
                                    <asp:GridView ID="grdShowCountry" runat="server" AutoGenerateColumns="False" 
                                    CellPadding="4" ForeColor="#333333" style="margin-right: 0px" Width="550px" 
                                        CssClass="control">
                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                        <Columns>
                                            <asp:CommandField ButtonType="Image" 
                                                SelectImageUrl="~/img/icon/select_icon.gif" ShowSelectButton="True" />
                                            <asp:TemplateField HeaderText="ชื่อ-นามสกุล">
                                                <ItemTemplate>
                                                    <asp:Label ID="Label5" runat="server" 
                                                        Text='<%# Eval("FirstName") & " "  & Eval("LastName") %>'></asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left" Width="53%" />
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="UniqueID" HeaderText="เลขที่" >
                                                <ItemStyle HorizontalAlign="Left" Width="20%" />
                                                    </asp:BoundField>
                                                <asp:TemplateField HeaderText="ผู้ทำธุรกรรม">
                                                <ItemTemplate>
                                                                    <asp:Label ID="Label4" runat="server" 
                                                                        
                                                                        
                                                                        Text='<%# iif(eval("RPTIDXTYPE")=1,"ผู้ร่วมทำธุรกรรม",iif(eval("RPTIDXTYPE")=2,"ผู้มอบหมาย",iif(eval("RPTIDXTYPE")=3,"ผู้มอบอำนาจ",""))) %>'></asp:Label>
                                                                </ItemTemplate>
                                                                <ItemStyle Width="27%" />
                                                            </asp:TemplateField>
                                                    </Columns>
                                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                    <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                    </asp:GridView>
                               </asp:Panel>
                               
                            </td>
                            <td colspan="2" align="left" valign="bottom" >
                                &nbsp;</td>

                        </tr>
                        <tr>
                            <td colspan="1" align="right" valign="top">
                                ผู้ทำธุรกรรม :    
                            </td>
                            <td colspan="7">
                                <asp:DropDownList ID="ddlIdxType" runat="server" Width="205px" 
                                        CssClass="control" BackColor="#FFCCCC">
                                </asp:DropDownList>
                            </td>
                         </tr>
                        <tr>
                            <td colspan="8">
                                <hr />
                            </td>
                        </tr> 
                        <tr bgcolor="#FDF6DA">
                            <td align="right" valign="top">
                                ชนิด : 
                            </td>
                            <td colspan="3" valign="top">
                                <asp:DropDownList ID="ddlUniqueType0" runat="server" 
                                CssClass="control" Width="200px" BackColor="#FFCCCC" AutoPostBack="True">
                                </asp:DropDownList>
                                <asp:HiddenField ID="hdfUniqueID_Part2" runat="server" />
                            </td>
                            <td style="text-align: right" valign="top">
                                เลขที่ : 
                            </td>
                            <td colspan="3" valign="top" align="left">
                                <asp:TextBox ID="txtUniqueID0" runat="server" CssClass="control" Height="20px" 
                                    Width="200px" MaxLength="13" BackColor="#FFCCCC"></asp:TextBox>
                                <asp:Button ID="btnSearchData0" runat="server" Text="ค้นหา" 
                                    ValidationGroup="ค้นหา" Width="64px" CssClass="control" 
                                    style="height: 26px" />
                                <asp:HiddenField ID="hdfRptIdx" runat="server" />
                            </td>
                        </tr>
                        <tr>
                                                        <td colspan="8" style="text-align: center">
             <SPAN id="Processing2" style="DISPLAY: none">
 <img src="../img/icon/ajax-loader.gif" alt="Please wait" />
            กรุณารอสักครู่ ระบบกำลังค้นหาข้อมูล...
  </SPAN>
                                                            <hr />
                                                        </td>
                        </tr>
                        <tr>
                            <td align="right">
                                คำนำหน้า :
                            </td>
                            <td>
                                <asp:TextBox ID="txtPrefix0" runat="server" Width="120px" BackColor="#FFCCCC" 
                                    CssClass="control" Height="20px" AutoCompleteType="Disabled" 
                                    MaxLength="50"></asp:TextBox>
                            </td>
                            <td style="text-align: right">
                                ชื่อ :
                            </td>
                            <td>
                                <asp:TextBox ID="txtFirstName0" runat="server" CssClass="control" Height="20px" 
                                                    Width="120px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled" MaxLength="200"></asp:TextBox>
                            </td>
                            <td align="right">
                                ชื่อกลาง :
                            </td>
                            <td>
                                <asp:TextBox ID="txtMidName0" runat="server" CssClass="control" Height="20px" 
                                                    Width="100px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled" MaxLength="50"></asp:TextBox>
                            </td>
                            <td align="right">
                                นามสกุล :
                            </td>
                            <td>
                                <asp:TextBox ID="txtLastName0" runat="server" CssClass="control" Height="20px" 
                                                    MaxLength="200" Width="150px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FDF6DA">
                                ที่อยู่ :
                            </td>
                            <td colspan="7" bgcolor="#FDF6DA">
                                <asp:TextBox ID="txtFormalAddr0" runat="server" CssClass="control" Height="20px" 
                                Width="100%" BackColor="#FFCCCC" AutoCompleteType="Disabled" MaxLength="250"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FDF6DA">
                                 โทรศัพท์ :
                            </td>
                            <td bgcolor="#FDF6DA" >
                                <asp:TextBox ID="txtFormalPhone0" runat="server" CssClass="control" 
                                Height="20px" Width="130px" MaxLength="50" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled"></asp:TextBox>
                            </td>
                            <td bgcolor="#FDF6DA" align="right">โทรสาร : </td>
                            <td bgcolor="#FDF6DA">
                                <asp:TextBox ID="txtFormalFax0" runat="server" BackColor="#FFCCCC" 
                                    CssClass="control" Height="20px" MaxLength="50" Width="120px" 
                                    AutoCompleteType="Disabled"></asp:TextBox>
                            </td>
                            <td align="left" colspan="4" bgcolor="#FDF6DA">
                                <asp:Button ID="btnFormalToWork0" runat="server" CssClass="control" 
                                    Text="คัดลอกไปยังสถานที่ทำงาน" Width="200px" />
                                <asp:Button ID="btnFormalToContact0" runat="server" CssClass="control" 
                                    Text="คัดลอกไปยังสถานที่ติดต่อ" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                                อาชีพ :
                                            </td>
                            <td colspan="3">
                                                <asp:DropDownList ID="ddlJob0" runat="server" 
                                                    CssClass="control" Width="170px" BackColor="#FFCCCC">
                                                </asp:DropDownList>
                                            </td>
                            <td align="right">
                                                ข้อมูลอาชีพ :
                                            </td>
                            <td colspan="3">
                                                <asp:TextBox ID="txtWorkOther0" runat="server" CssClass="control" Height="20px" 
                                                    Width="205px" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                    MaxLength="80"></asp:TextBox>
                                            </td>
                        </tr>
                        <tr bgcolor="#FDF6DA">
                            <td align="right">
                                                            สถานที่ทำงาน :
                                                        </td>
                            <td colspan="7">
                                                            <asp:TextBox ID="txtWorkAddr0" runat="server" CssClass="control" Height="20px" 
                                                                Width="100%" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                                MaxLength="250"></asp:TextBox>
                                                        </td>
                        </tr>
                        <tr bgcolor="#FDF6DA">
                            <td align="right">
                                                โทรศัพท์ :
                                            </td>
                            <td>
                                                <asp:TextBox ID="txtWorkPhone0" runat="server" CssClass="control" Height="20px" 
                                                    Width="130px" MaxLength="50" BackColor="#FFCCCC" 
                                                    AutoCompleteType="Disabled"></asp:TextBox>
                                            </td>
                                            <td align="right">โทรสาร : </td>
                                            <td>
                                                <asp:TextBox ID="txtWorkFax0" runat="server" BackColor="#FFCCCC" 
                                                    CssClass="control" Height="20px" MaxLength="50" Width="120px" 
                                                    AutoCompleteType="Disabled"></asp:TextBox>
                            </td>
                            <td align="left" colspan="4">
                                                <asp:Button ID="btnWorkToContact0" runat="server" CssClass="control" 
                                                    Text="คัดลอกไปยังสถานที่ติดต่อ" Width="200px" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                ประเภทประกอบการ :</td>
                            <td colspan="3">
                                <asp:DropDownList ID="ddlBizType" runat="server" BackColor="#FFCCCC" 
                                    CssClass="control" Width="164px">
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                ข้อมูลเพิ่มเติม :</td>
                            <td colspan="3">
                                <asp:TextBox ID="txtBizTypeOther" runat="server" BackColor="#FFCCCC" 
                                    CssClass="control" Height="20px" Width="205px" AutoCompleteType="Disabled" 
                                    MaxLength="80"></asp:TextBox>
                            </td>
                        </tr>
                        <tr bgcolor="#FDF6DA">
                            <td align="right">
                                                สถานที่ติดต่อ :
                                            </td>
                            <td colspan="7">
                                                <asp:TextBox ID="txtContactAddr0" runat="server" CssClass="control" 
                                                    Height="20px" Width="100%" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                                    MaxLength="250"></asp:TextBox>
                                            </td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#FDF6DA">
                                                            โทรศัพท์ : 
                                                        </td>
                            <td bgcolor="#FDF6DA" >
                                                            <asp:TextBox ID="txtContactPhone0" runat="server" CssClass="control" 
                                                                Height="20px" Width="130px" MaxLength="50" BackColor="#FFCCCC" 
                                                                AutoCompleteType="Disabled"></asp:TextBox>
                                                        </td>
                                                        <td bgcolor="#FDF6DA" align="right">โทรสาร : </td>
                                                        <td bgcolor="#FDF6DA">
                                                            <asp:TextBox ID="txtContactFax0" runat="server" BackColor="#FFCCCC" 
                                                                CssClass="control" Height="20px" MaxLength="50" Width="110px" 
                                                                AutoCompleteType="Disabled"></asp:TextBox>
                            </td>
                            <td align="right" colspan="4" bgcolor="#FDF6DA">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right">
                                หลักฐานทำธุรกรรม :
                            </td>
                            <td colspan="3">
                                                <asp:DropDownList ID="ddlTranEV0" runat="server" CssClass="control" 
                                                    Height="22px" Width="240px" BackColor="#FFCCCC" AutoPostBack="True">
                                                </asp:DropDownList>
                                            </td>
                            <td align="right">
                                ข้อมูลเพิ่มเติม :
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtTranEVOther0" runat="server" CssClass="control" 
                                    Height="20px" Width="200px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled" MaxLength="80"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">
                                เลขที่ :
                            </td>
                            <td  valign="top">
                                <asp:TextBox ID="txtEVNo0" runat="server" CssClass="control" Height="20px" 
                                Width="120px" MaxLength="13" BackColor="#FFCCCC" AutoCompleteType="Disabled"></asp:TextBox>
                              
                            </td>
                            <td  valign="top" align="right"> ออกโดย :</td>
                            <td  valign="top"> 
                                <asp:TextBox ID="txtEVBy0" runat="server" CssClass="control" Height="20px" 
                                Width="130px" BackColor="#FFCCCC" AutoCompleteType="Disabled" MaxLength="60"></asp:TextBox></td>
                            <td align="right" valign="top">
                                ออกเมื่อ :
                            </td>
                            <td>
                                <asp:TextBox ID="txtEvGen0" runat="server" CssClass="control" Height="20px" 
                                MaxLength="8" Width="120px" BackColor="#FFCCCC" AutoCompleteType="Disabled"></asp:TextBox>
                                &nbsp;
                                <br />
                                DDMMYYYY (พ.ศ.)
                            </td>
                            <td align="right" valign="top">
                                วันหมดอายุ :
                            &nbsp;</td>
                            <td align="left" valign="top">
                                <asp:TextBox ID="txtEvExpire0" runat="server" CssClass="control" Height="20px" 
                                    MaxLength="8" Width="120px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled"></asp:TextBox>
                                <br />
                                DDMMYYYY (พ.ศ.)
                            </td>
                       </tr>
                        <tr>
                                            <td style="text-align: right" colspan="8">
                                                <asp:Button ID="btnAdd" runat="server" CssClass="control" 
                                                    Text="บันทึกข้อมูล(ส่วนที่2)" Width="140px" />
                                                <asp:Button ID="btnEdit" runat="server" CssClass="control" 
                                                    Text="บันทึกข้อมูล(ส่วนที่2)" Visible="False" Width="140px" />
                                                <asp:Button ID="btnDelete" runat="server" CssClass="control" 
                                                    Text="ลบข้อมูล(ส่วนที่2)" Visible="False" Width="140px" />
                                                <asp:Button ID="btnClear" runat="server" CssClass="control" 
                                                    Text="เคลียร์ข้อมูล(ส่วนที่2)" Width="140px" />
                                            </td>
                                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
                <tr valign="top">
                    <td colspan="3">
                        <asp:Panel ID="Panel3" runat="server">
                    <table style="width:100%;" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="right" valign="top">
                             วันที่ทำธุรกรรม :
                            </td>
                            <td colspan="7">
                                <asp:TextBox ID="txtTransDate" runat="server" CssClass="control" Height="20px" 
                                Width="200px" MaxLength="10" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                    AutoPostBack="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr bgcolor="#FDF6DA">
                            <td style="text-align: right">
                                ชนิดของธุรกรรม : 
                            </td>
                            <td colspan="3">
                                <asp:DropDownList ID="ddlTransType" runat="server" CssClass="control" 
                                    Width="205px" BackColor="#FFCCCC">
                                </asp:DropDownList>
                            </td>
                            <td style="text-align: right" align="right">
                                ข้อมูลเพิ่มเติม : 
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtTransTypeOther" runat="server" CssClass="control" 
                                Height="20px" Width="250px" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                    MaxLength="80"></asp:TextBox>
                            </td>
                        </tr>
                        <tr bgcolor="#FDF6DA">
                            <td style="text-align: right">
                                เลขที่บัญชี/ตราสาร : 
                            </td>
                            <td valign="top" colspan = "3">
                                <asp:TextBox ID="txtAccountNo" runat="server" CssClass="control" Height="20px" 
                                Width="200px" BackColor="#FFCCCC" MaxLength="30" AutoCompleteType="Disabled"></asp:TextBox>
                            </td>
                            <td style="text-align: right" valign="top">
                                จำนวนเงิน : 
                            </td>
                            <td valign="top" colspan = "3">
                                <asp:TextBox ID="txtTranAmt" runat="server" CssClass="control" Height="20px" 
                                Width="170px" AutoPostBack="True" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled" MaxLength="15"></asp:TextBox>
                                สกุลเงิน :
                                <asp:TextBox ID="txtCurrency" runat="server" CssClass="control" Height="20px" 
                                Width="50px" BackColor="#FFCCCC" AutoCompleteType="Disabled" MaxLength="3"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">
                                <b>ผู้รับผลประโยชน์</b>&nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">
                                คำนำหน้า :
                            </td>
                            <td>
                                <asp:TextBox ID="txtGainPrefix" runat="server" Width="100px" 
                                    BackColor="#FFCCCC" AutoCompleteType="Disabled" Height="20px" 
                                    MaxLength="50" CssClass="control"></asp:TextBox>
                            </td>
                            <td align="right">
                                ชื่อ :
                            </td>
                            <td>
                                <asp:TextBox ID="txtGainFirstName" runat="server" CssClass="control" 
                                    Height="20px" Width="120px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled" MaxLength="200"></asp:TextBox>
                            </td>
                            <td align="right" valign="top">
                                ชื่อกลาง :
                            </td>
                            <td>
                                <asp:TextBox ID="txtGainMidName" runat="server" CssClass="control" 
                                    Height="20px" Width="100px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled" MaxLength="50"></asp:TextBox>
                            </td>
                            <td align="right" valign="top">
                                นามสกุล :</td>
                            <td>
                                <asp:TextBox ID="txtGainLastName" runat="server" CssClass="control" 
                                    Height="20px" Width="170px" BackColor="#FFCCCC" 
                                    AutoCompleteType="Disabled" MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                        <tr bgcolor="#FDF6DA">
                            <td align="right" valign="top">
                                วัตถุประสงค์ :
                            </td>
                            <td colspan="3">
                                <asp:DropDownList ID="ddlObjName" runat="server" CssClass="control" 
                                    Width="205px" BackColor="#FFCCCC">
                                </asp:DropDownList>
                            </td>
                            <td align="right" valign="top">
                                ข้อมูลเพิ่มเติม :
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtObjOther" runat="server" CssClass="control" Height="20px" 
                                    Width="200px" BackColor="#FFCCCC" AutoCompleteType="Disabled" 
                                    MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">
                                ผู้บันทึกข้อเท็จจริง :
                            </td>
                            <td colspan="7">
                                <asp:RadioButtonList ID="rdoSaveType" runat="server" CssClass="control" 
                                    RepeatDirection="Horizontal" BackColor="#FFCCCC">
                                    <asp:ListItem Value="0">ลูกค้าเป็นผู้บันทึก</asp:ListItem>
                                    <asp:ListItem Value="1">สถาบันการเงินเป็นผู้บันทึก</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr bgcolor="#FDF6DA">
                            <td align="right" valign="top">
                                การลงลายมือชื่อ :</td>
                            <td colspan="7" valign="top">
                               <asp:RadioButtonList ID="rdoSignType" runat="server" CssClass="control" 
                                    RepeatDirection="Horizontal" BackColor="#FFCCCC">
                                    <asp:ListItem Value="0">ลูกค้าไม่ลงลายมือชื่อ</asp:ListItem>
                                    <asp:ListItem Value="1">ลูกค้าลงลายมือชื่อ</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" valign="top">
                                วันที่บันทึกข้อเท็จจริง :
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtSaveDate" runat="server" CssClass="control" Height="20px" 
                                    Width="200px" BackColor="#FFCCCC" AutoCompleteType="Disabled"></asp:TextBox>
                            </td>
                            <td align="right" valign="top">
                                สถานะบันทึก :</td>
                            <td colspan="3" align="left" valign="top">
                                <asp:RadioButtonList ID="rdolIsComple" runat="server" 
                                    RepeatDirection="Horizontal" BackColor="#FFCCCC">
                                    <asp:ListItem Value="1">ครบถ้วน</asp:ListItem>
                                    <asp:ListItem Value="0">ไม่ครบถ้วน</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" colspan="8" valign="top">
                                <asp:Button ID="btnSave" runat="server" CssClass="control" Text="บันทึกข้อมูล" 
                                    Width="100px" />
                                &nbsp;<asp:Button ID="btnCancel" runat="server" CssClass="control" Text="ยกเลิก" 
                                    Width="100px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                    </td>
                </tr>
    </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

